<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'teainfo.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <h2>教师信息表</h2>

姓名:${teacher1.teaname }
年龄:${teacher1.teacherage }
工号:${teacher1.workid }
性别:${teacher1.teachersex }
<#if teacher1.teachca??>
称谓:${teacher1.teachca }
<#else>
 未录入
</#if>
联系方式：${teacher1.teacherphone }
<#if teacher1.teasub??>
科目：${teacher1.teasub}
<#else>
 科目：未任课
</#if>
<#if teacher1.teclassno !=0>
班级：${teacher1.teclassno}年级
<#else>
职位： 领导或班主任${teacher1.isadmin}
</#if>
<#if teacher1.isadmin =="x">
您是任课老师，您可以对您所授科目的学生成绩进行操作！

<#elseif teacher1.isadmin =="y">
 您是班主任，您可以对本班学生的信息，成绩进行修改！
<#else>
 您是校长可以对全校事务进行操作！
 </#if>
  </body>
</html>
